-- GENERATED SPELL FOR [Darkspine Myrmidon] --


function spell0_25060(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_25060', 30299, 1)
end

function spell1_25060(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25060', 30267, 1)
end

function Sorts_25060(pUnit, Event)
local choix_sorts_25060 = math.random(0, 1)
if choix_sorts_25060 == 0 then
pUnit:RegisterEvent('spell0_25060', 1, 1)
end
if choix_sorts_25060 == 1 then
pUnit:RegisterEvent('spell1_25060', 1, 1)
end
end

function mob25060_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25060', math.random(1500, 3000), 1)
end

function mob25060_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25060_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25060_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25060, 1, 'mob25060_Action')
RegisterUnitEvent(25060, 2, 'mob25060_Leave')
RegisterUnitEvent(25060, 3, 'mob25060_Kill')
RegisterUnitEvent(25060, 4, 'mob25060_Die')
